import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import  Healthy from  '../views/healthy'
import  Search from  '../views/search'
import  Article from  '../views/article'
import  goodsList from  '../views/goodsList'
import  Info from  '../views/info'
import  perfrom from  '../views/perfrom'
import  Order from  '../views/order'
import  Huabo from  '../views/huabo'
import  newVip from  '../views/newVip'
import  payMent from  '../views/payment'
import  Entry from  '../views/entry'
import  Rice from  '../views/rice'
import  riceSearch from  '../views/rice_search'
import  riceInfo from  '../views/rice_info'
import  xmInfo from  '../views/xmInfo'

Vue.use(VueRouter)

const routes = [
{
  path: '/home',
  name: 'Home',
  component: Home
},
{
  path:'/',
  name:'Healthy',
  component:Healthy
},
{
  path:'/search',
  name:'Search',
  component:Search
},
{
  path:'/article',
  name:'Article',
  component:Article
},
{
  path:'/goodsList',
  name:'goodsList',
  component:goodsList
},
{
  path:'/info',
  name:'Info',
  component:Info
},
{
  path:'/perfrom',
  name:'perfrom',
  component:perfrom
},
{
  path:'/order',
  name:'order',
  component:Order
},
{
  path:'/huabo',
  name:'huabo',
  component:Huabo
},
{
  path:'/newVip',
  name:'newVip',
  component:newVip
},
{
  path:'/payment',
  name:'payment',
  component:payMent
},
{
  path:'/entry',
  name:'entry',
  component:Entry
},
{
  path:'/rice',
  name:'rice',
  component:Rice
},
{
  path:'/rice_search',
  name:'riceSearch',
  component:riceSearch
},
{
  path:'/rice_info',
  name:'riceInfo',
  component:riceInfo
},
{
  path:'/xmInfo',
  name:'xmInfo',
  component:xmInfo
},
]

const router = new VueRouter({
  mode: 'hash',
  routes
})

export default router
